﻿<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="TrainList.aspx.cs" Inherits="UI.ModTrain.TrainList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>培训列表</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            培训列表</div>
        <div id="topRight" class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px"></asp:TextBox>
            <asp:DropDownList ID="ddlDeptID" runat="server" CssClass="InputCss">
            </asp:DropDownList>
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" />
            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" OnClick="btnExcel_Click" />
            <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" OnClick="btnAdd_Click" />
            &nbsp;
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="TrainID" Width="100%" AutoGenerateColumns="False"
       
 GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound" CssClass="td">
        <Columns>
        
        <asp:BoundField DataField="TrainID" HeaderText="TrainID" SortExpression="TrainID" 
                Visible="False">               
            </asp:BoundField>
            <asp:BoundField DataField="TrainTime" HeaderText="培训日期" DataFormatString="{0:d}"
                SortExpression="TrainTime" ItemStyle-HorizontalAlign="Center">
                <ItemStyle Width="90px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="员工工号" SortExpression="EmpCode" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('TrainAdd.aspx?TrainID=<%# Eval("TrainID")%>',800,550)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('TrainAdd.aspx?TrainID=<%# Eval("TrainID")%>',800,550)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:BoundField DataField="DeptName" HeaderText="部门" SortExpression="DeptName">
                <ItemStyle Width="90px" />
            </asp:BoundField>
            <asp:BoundField DataField="AreaName" HeaderText="区域" SortExpression="AreaName">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="DutyName" HeaderText="职位" SortExpression="DutyName">
                <ItemStyle Width="90px" />
            </asp:BoundField>
            <asp:BoundField DataField="JoinTime" HeaderText="入职时间" DataFormatString="{0:d}" SortExpression="JoinTime">
                <ItemStyle Width="90px" />
            </asp:BoundField>
            <asp:BoundField DataField="TrainItem" HeaderText="培训科目" SortExpression="TrainItem">
                <ItemStyle Width="150px" />
            </asp:BoundField>
         
            <asp:BoundField DataField="CheckTime" HeaderText="考核时间" DataFormatString="{0:d}"
                SortExpression="CheckTime">
                <ItemStyle Width="90px" />
            </asp:BoundField>
            <asp:BoundField DataField="CheckGrade" HeaderText="考核分数" SortExpression="CheckGrade">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="120px" />
            </asp:BoundField>
        </Columns>
       
    </asp:GridView>
     <div id="divAmount" class="amountLine">
        <asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
